.class public Lcom/instagram/android/feed/a/b/h;
.super Ljava/lang/Object;
.source "HashtagFeedHeaderRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 21
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_hashtag_feed_header:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 22
    new-instance v2, Lcom/instagram/android/feed/a/b/i;

    invoke-direct {v2}, Lcom/instagram/android/feed/a/b/i;-><init>()V

    .line 23
    sget v0, Lcom/facebook/aw;->row_hashtag_feed_header_textview_tag_name:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/i;->a(Lcom/instagram/android/feed/a/b/i;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 24
    sget v0, Lcom/facebook/aw;->row_hashtag_feed_header_textview_media_count:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/i;->b(Lcom/instagram/android/feed/a/b/i;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 25
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_grid:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/i;->a:Landroid/widget/Button;

    .line 27
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_list:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/i;->b:Landroid/widget/Button;

    .line 29
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 30
    return-object v1
.end method

.method public static a(Lcom/instagram/android/feed/a/b/i;Lcom/instagram/android/model/h;Landroid/content/Context;Lcom/instagram/android/feed/a/a;)V
    .locals 5
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/i;->a:Landroid/widget/Button;

    iget-object v1, p0, Lcom/instagram/android/feed/a/b/i;->b:Landroid/widget/Button;

    invoke-static {v0, v1, p3}, Lcom/instagram/android/widget/ba;->a(Landroid/widget/Button;Landroid/widget/Button;Lcom/instagram/android/feed/a/a;)V

    .line 36
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/i;->a(Lcom/instagram/android/feed/a/b/i;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "#%s"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {p1}, Lcom/instagram/android/model/h;->a()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 37
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/i;->b(Lcom/instagram/android/feed/a/b/i;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/android/model/h;->b()I

    move-result v2

    invoke-static {v1, v2}, Lcom/instagram/android/util/ab;->a(Landroid/content/res/Resources;I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 38
    return-void
.end method
